<?php 
$argc = $_SERVER['argc'];
$argv = $_SERVER['argv'];

if ($argc != 2)
{
    die("usage:".$argv[0]."  longip\n");
}

$longip = $argv[1];
printf("ip:%s\n", long2ip($longip));

?>
